﻿using MyBlog2.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyBlog2.Repository
{
    public class FriendLinkRepository : IFriendLinkRepository
    {
        private readonly AppDbContext _context;

        public FriendLinkRepository(AppDbContext context)
        {
            this._context = context;
        }

        public List<FriendLink> GetFriendLinks()
        {
            return _context.FriendLinks.ToList();
        }
    }
}
